<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type='text/javascript' src='http://localhost/oshop/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/oshop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/oshop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/oshop';
		WEB = 'http://localhost/oshop/admin.php';
		URL = 'http://localhost/oshop/admin.php/Index/Category/edit/cid/1';
		HDPHP = 'http://localhost/oshop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/oshop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/oshop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/oshop/hdphp/hdphp/Extend';
		APP = 'http://localhost/oshop/admin.php/Index';
		CONTROL = 'http://localhost/oshop/admin.php/Index/Category';
		METH = 'http://localhost/oshop/admin.php/Index/Category/edit';
		GROUP = 'http://localhost/oshop/Oshop';
		TPL = 'http://localhost/oshop/Oshop/Admin/Index/Tpl';
		CONTROLTPL = 'http://localhost/oshop/Oshop/Admin/Index/Tpl/Category';
		STATIC = 'http://localhost/oshop/Static';
		PUBLIC = 'http://localhost/oshop/Oshop/Admin/Index/Tpl/Public';
		HISTORY = 'http://localhost/oshop/admin.php/Index/Category/index';
		HTTPREFERER = 'http://localhost/oshop/admin.php/Index/Category/index';
</script>
</head>
<body>
          <form action="" class="hd-form" method="post">
          	<input type="hidden" name="pid" value="<?php echo $filed[pid];?>">
          	<input type="hidden" name="cid" value="<?php echo $filed[cid];?>">
          	<div class="wrap">
          		<div class="menu_list">
          			<ul>
          				<li>
          					<a href="">商品栏目</a>
          				</li>
          				<li>
          					<a href="" class="action">添加商品</a>
          				</li>
          			</ul>
          		</div>
          		<div class="title-header">修改商品栏目</div>
          	          <table class="table1">
          	          	<tr>
          	          		<th class="w150">栏目名称</th>
          	          		<td ><input type="text" name="cname" id=""class="w300" value="<?php echo $filed[cname];?>"></td>
          	          	</tr>
                              <tr>
                                   <th class="w150">上级</th>
                                   <td >
                                        <select name="pic" id="">
                                            <?php $hd["list"]["cat"]["total"]=0;if(isset($catagoryData) && !empty($catagoryData)):$_id_cat=0;$_index_cat=0;$lastcat=min(1000,count($catagoryData));
$hd["list"]["cat"]["first"]=true;
$hd["list"]["cat"]["last"]=false;
$_total_cat=ceil($lastcat/1);$hd["list"]["cat"]["total"]=$_total_cat;
$_data_cat = array_slice($catagoryData,0,$lastcat);
if(count($_data_cat)==0):echo "";
else:
foreach($_data_cat as $key=>$cat):
if(($_id_cat)%1==0):$_id_cat++;else:$_id_cat++;continue;endif;
$hd["list"]["cat"]["index"]=++$_index_cat;
if($_index_cat>=$_total_cat):$hd["list"]["cat"]["last"]=true;endif;?>

                                             <option value="" <?php echo $cat['selected'];?> <?php echo $cat['disabled'];?>><?php echo $cat['_name'];?></option>
                                           <?php $hd["list"]["cat"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?> 
                                        </select>
                                   </td>
                              </tr>
          	          	<tr>
          	          		<th class="w150">关键字</th>
          	          		<td ><input type="text" name="keywords" id=""class="w300" value="<?php echo $filed[keywords];?>"></td>
          	          	</tr>
          	          	<tr>
          	          		<th class="w150">描述</th>
          	          		<td >
          	          			<textarea name="description" id="" cols="30" rows="10" class="w400 h100" ><?php echo $filed[description];?></textarea>
          	          		</td>
          	          	</tr>
          	          	<tr>
          	          		<th class="w150">栏目类型</th>
          	          		<td >
          	          			<label>普通栏目<input type="radio" name="cattype" id="" value="1" <?php if($filed[cattype] == 1){?>checked=""<?php }?>></label>
          	          			<label>封面<input type="radio" name="cattype" id="" value="1" value="2" <?php if($filed[cattype] == 2){?>checked=""<?php }?>></label>
          	          		</td>
          	          	</tr>
          	          	<tr>
          	          		<th class="w150">单位</th>
          	          		<td ><input type="text" name="unit" id=""class="w300" value="<?php echo $filed[unit];?>"></td>
          	          	</tr>
          	          	<tr>
          	          		<th class="w150">价格区间</th>
          	          		<td ><input type="text" name="pricerange" id=""class="w300" value="<?php echo $filed[pricerange];?>"></td>
          	          	</tr>
          	          </table>
          	          <div class="position-bottom" >
          	          	<input type="submit" value="确定" class="hd-success">
          	          </div>
          	</div>
          </form>
</body>
</html>